package com.springweb.unit3.spEL.impl;

import com.springweb.unit3.spEL.CompactDisc;

public class GreenDisc implements CompactDisc {
	
	private String title;
	private String artist;
	
	public GreenDisc(String title, String artist) {
		this.title = title;
		this.artist = artist;
	}
	
	@Override
	public void play() {
		System.out.println("Playing " + title + " by " + artist);
	}

	public String getTitle() {
		return title;
	}

	public String getArtist() {
		return artist;
	}
	
}
